package edu.cuc.socket.url.url;

import java.net.InetAddress;

public class InteAddressDemo {
    public static void main(String[] args) {
        try {
            InetAddress remoteInet = InetAddress.getByName("www.baidu.com");
            InetAddress localInet = InetAddress.getLocalHost();

        } catch (Exception ex) {

        }

    }
}
